Optimal. Leaf size=29 \[ -\frac{2 \sec (e+f x) \sqrt{c-c \sin (e+f x)}}{a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12751, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.071, Rules used = {2736, 2673} \[ -\frac{2 \sec (e+f x) \sqrt{c-c \sin (e+f x)}}{a f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2673
Rubi steps
\begin{align*} \int \frac{\sqrt{c-c \sin (e+f x)}}{a+a \sin (e+f x)} \, dx &=\frac{\int \sec ^2(e+f x) (c-c \sin (e+f x))^{3/2} \, dx}{a c}\\ &=-\frac{2 \sec (e+f x) \sqrt{c-c \sin (e+f x)}}{a f}\\ \end{align*}
Mathematica [A] time = 0.0964544, size = 29, normalized size = 1. \[ -\frac{2 \sec (e+f x) \sqrt{c-c \sin (e+f x)}}{a f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.408, size = 39, normalized size = 1.3 \begin{align*} 2\,{\frac{c \left ( -1+\sin \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) a\sqrt{c-c\sin \left ( fx+e \right ) }f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.24396, size = 103, normalized size = 3.55 \begin{align*} \frac{2 \,{\left (\sqrt{c} + \frac{\sqrt{c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}}{{\left (a + \frac{a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )} f \sqrt{\frac{\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.00828, size = 66, normalized size = 2.28 \begin{align*} -\frac{2 \, \sqrt{-c \sin \left (f x + e\right ) + c}}{a f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\sqrt{- c \sin{\left (e + f x \right )} + c}}{\sin{\left (e + f x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.50303, size = 262, normalized size = 9.03 \begin{align*} -\frac{\frac{\sqrt{2} \sqrt{c} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )}{\sqrt{2} a - a} - \frac{4 \,{\left ({\left (\sqrt{c} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - \sqrt{c \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + c}\right )} c \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right ) - c^{\frac{3}{2}} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )\right )}}{{\left ({\left (\sqrt{c} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - \sqrt{c \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + c}\right )}^{2} + 2 \,{\left (\sqrt{c} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - \sqrt{c \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + c}\right )} \sqrt{c} - c\right )} a}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]